import React from "react"
import { BrowserRouter as Router, Route, Link } from 'react-router-dom'
import routes from './router'

function App() {
  return (
    <Router>
      {
        routes.map(route => <Route exact key={route.path} path={route.path} component={route.component} />)
      }
    </Router>
  )
}

export default App